<form action="<{url a='user-save'}>" method="post" id="form1">
<table border="0" width="100%">
<tr>
	<td width="23%" align="right">用户名</td>
	<td>
	<{if $user}> <{$user.account}> <{else}>
		<input type="text" name="account" class="text ui-widget-content ui-corner-all" value="" />
    <{/if}>
	</td>
</tr>
<tr>
	<td align="right">密码</td>
	<td><input type="password" name="passwd" class="text ui-widget-content ui-corner-all" value="" /></td>
</tr>
<tr>
	<td align="right">姓名</td>
	<td><input type="text" name="name" class="text ui-widget-content ui-corner-all" value="<{$user.name}>" /></td>
</tr>
<tr>
	<td align="right">邮箱</td>
	<td><input type="text" name="email" class="text ui-widget-content ui-corner-all" value="<{$user.email}>" /></td>
</tr>
<tr>
	<td align="right">部门</td>
	<td><select name="dept_id">
		<option value=""></option>
<{foreach from=$depts item=d}>
		<option value="<{$d.id}>"><{$d.name}></option>
<{/foreach}>
	</select>
	<script> $('select[name=dept_id]').val('<{$user.dept_id}>'); </script>
	</td>
</tr>
<tr>
	<td align="right">手机</td>
	<td><input type="text" name="mobile" class="text ui-widget-content ui-corner-all" value="<{$user.mobile}>" /></td>
</tr>
<tr>
	<td align="right">备注</td>
	<td><textarea class="text ui-widget-content ui-corner-all" name="remark"><{$user.remark}></textarea></td>
</tr>
</table>
<input type="hidden" name="user_id" id="user_id" value="<{$user.id}>" />
</form>

